﻿namespace OTE.Web.Infrastructure.Utils
{
    public class Common
    {
        public static int GetTotalPage(int numOfRows, int total)
        {
            var even = total / numOfRows;
            var odd = total % numOfRows;
            if (odd > 0)
                even += 1;

            return even;
        }
    }
}